package com.rural.bus.driver.adapter;

import java.util.List;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import com.rural.bus.driver.R;
import com.rural.bus.driver.adapter.base.ViewHolder;
import com.rural.bus.driver.model.Order;

public class HistoryOrderAdapter extends OrderAdapter {

	public HistoryOrderAdapter(Context context, List<Order> orders) {
		super(context, orders);
	}
	
	@Override
	public View getView(int arg0, View convertView, ViewGroup arg2) {
		convertView=super.getView(arg0, convertView, arg2);
      	Button btAction=ViewHolder.get(convertView, R.id.bt_receive);
        btAction.setVisibility(View.GONE);
		return convertView;
	}

}
